<%@page import="org.apache.commons.dbutils.handlers.MapHandler"%>
<%@page import="org.apache.commons.dbutils.QueryRunner"%>
<%@page import="org.logicalcobwebs.proxool.ProxoolDataSource"%>
<%@page import="javax.sql.DataSource"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Map"%>
<%@page import="com.yfg.wap.flight.common.DBhelper"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="head.jsp" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/core.tld" prefix="c" %>

<title>我的订单</title>
<style>
<!--
*{font-size: 12px;}
-->
</style>
</head>
<body>
<div class="title" style="border: 1px red solid">我的订单</div>
<table cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<th class="li_hr">编号</th>
		<th class="li_hr">订单时间</th>
		<th class="li_hr">航程</th>
		<th class="li_hr">金额</th>
		<th class="li_hr">操作</th>
	</tr>
	<s:iterator value="#request.list" var="order">
		<tr>
		<td class="li_hr">${systemSn}</td>
		<td class="li_hr"><fmt:formatDate value="${bookTime}" pattern="yy/MM/dd HH:mm"/> </td>
		<td class="li_hr"><s:if test="voyagetype==1">单程</s:if><s:elseif test="voyagetype==2">往返</s:elseif> </td>
		<td class="li_hr"><fmt:formatNumber value="${orderTotal}" pattern="￥0.00" /></td>
		<td class="li_hr" align="center"><div class="flt_results_price" style="width: 50px; height: 14px;" onclick="showDetail('${systemSn}')">查看</div></td>
	</tr>
	</s:iterator>
	<tr align="right">
		<td colspan="5" style="text-align: right;">
		第&nbsp;${page.pageIndex}&nbsp;页&nbsp;&nbsp;
					<c:if test="${page.pageIndex>1}">
					<a href="/query_list.shtml?page=1">首页</a>&nbsp;&nbsp;
					<a href="/query_list.shtml?page=${page.pageIndex-1}">上一页 </a>
					</c:if>
					<c:if test="${page.pageIndex==1}">
					首页&nbsp;&nbsp;上一页
					</c:if>
					<c:if test="${page.pageIndex!=page.totalPage}">
					<a  href="/query_list.shtml?page=${page.pageIndex+1}">下一页</a>
					&nbsp;&nbsp;
					<a href="/query_list.shtml?page=${page.totalPage}">最后页</a>
					</c:if>
					<c:if test="${page.pageIndex==page.totalPage}">
					下一页&nbsp;&nbsp;最后页
					</c:if>
		</td>
	</tr>
</table><br/>
<script type="text/javascript">
	showDetail=function(val){
		location.href='query_getObject.shtml?sn='+val;
	}
</script>
</body>
</html>